package com.cdream.basic.spring.factorybean.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Primary;
import org.springframework.core.env.Environment;

/**
 * @author cdream
 * @date 10/5/21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Primary
public class CarAware extends Car implements EnvironmentAware {
    private Environment environment;

    @Override
    public void setEnvironment(Environment environment) {
        this.environment = environment;
    }
}
